
<%@page import="board.Board"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>reply_result</title>
</head>
<body>
<jsp:useBean id="vo" class="board.BoardVo"></jsp:useBean>


<%
	vo.setRequest(request);	
	Board b = new Board();
	b.setVo(vo);
	
	if(b.reply()){ %>
	<script>
		alert("답글을 등록하였습니다.");
		location.href="Main.jsp?inc_content=../board2/list.jsp";
	</script>
	<%}else{ %>
	<script>
		alert("오류가 발생하였습니다. 다시 시도해주십시오.");
		history.back();
	</script>
	<%}%>

</body>
</html>